mui.init();
const HOST = 'http://117.18.119.37/Alps/api/'
const WEBHOST = 'http://117.18.119.37/h5/'

const checkLogin = function() {
	const pathname = location.pathname
	if (pathname.indexOf('login') === -1 && pathname.indexOf('register') === -1) {
		const key = localStorage.getItem('MEMBERS')
		const code = localStorage.getItem('CODE')
		if (!key || !code) {
			location.href = './login.html'
		}
	}
}

checkLogin()
